package 期末复习;

public class MyStringTest {
    public static void main(String[] args) {
        String ziFu01 = "Hello Java";
        String ziFu02 = "Hello Java";
        if (ziFu01 .equals(ziFu02)) {
            System.out.println("他们相等");
            String ziFU03 = ziFu01.replace(" ", "").replace("Java", "World");
            System.out.println(ziFU03);
        }else {
            System.out.println("它们不相等");
        }
    }
}
